/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2018
 */

package com.hzyb.shopPopAds.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Length;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


@Entity
@Table(name = "shop_pop_ads")
public class ShopPopAds {
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	@Length(max=50)
	private java.lang.String adsSid;
	@Length(max=500)
	private java.lang.String title;
	@Length(max=500)
	private java.lang.String description;
	@Length(max=50)
	private java.lang.String fileId;
	@Length(max=1)
	private java.lang.String type;
	@Length(max=50)
	private java.lang.String enterUserid;

	private java.util.Date enterDate;
	@Length(max=50)
	private java.lang.String updateUserid;

	private java.util.Date updateDate;

	private String commoditySid;
	//columns END

	@Column(name="commodity_sid")
	public String getCommoditySid() {
		return commoditySid;
	}

	public void setCommoditySid(String commoditySid) {
		this.commoditySid = commoditySid;
	}

	public ShopPopAds(){
	}

	public ShopPopAds(
			java.lang.String adsSid
			){
		this.adsSid = adsSid;
	}



	public void setAdsSid(java.lang.String value) {
		this.adsSid = value;
	}

	@Id @GeneratedValue(generator="custom-id")
	@GenericGenerator(name="custom-id", strategy = "increment")
	@Column(name = "ads_sid", unique = true, nullable = false, insertable = true, updatable = true, length = 50)
	public java.lang.String getAdsSid() {
		return this.adsSid;
	}

	@Column(name = "title", unique = false, nullable = true, insertable = true, updatable = true, length = 500)
	public java.lang.String getTitle() {
		return this.title;
	}

	public void setTitle(java.lang.String value) {
		this.title = value;
	}

	@Column(name = "description", unique = false, nullable = true, insertable = true, updatable = true, length = 500)
	public java.lang.String getDescription() {
		return this.description;
	}

	public void setDescription(java.lang.String value) {
		this.description = value;
	}

	@Column(name = "file_id", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getFileId() {
		return this.fileId;
	}

	public void setFileId(java.lang.String value) {
		this.fileId = value;
	}

	@Column(name = "type", unique = false, nullable = true, insertable = true, updatable = true, length = 1)
	public java.lang.String getType() {
		return this.type;
	}

	public void setType(java.lang.String value) {
		this.type = value;
	}

	@Column(name = "enter_userid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getEnterUserid() {
		return this.enterUserid;
	}

	public void setEnterUserid(java.lang.String value) {
		this.enterUserid = value;
	}



	@Column(name = "enter_date", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public java.util.Date getEnterDate() {
		return this.enterDate;
	}

	public void setEnterDate(java.util.Date value) {
		this.enterDate = value;
	}

	@Column(name = "update_userid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getUpdateUserid() {
		return this.updateUserid;
	}

	public void setUpdateUserid(java.lang.String value) {
		this.updateUserid = value;
	}



	@Column(name = "update_date", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public java.util.Date getUpdateDate() {
		return this.updateDate;
	}

	public void setUpdateDate(java.util.Date value) {
		this.updateDate = value;
	}
}

